let baseUrl = '';
// H5网页
// #ifdef H5
if (process.env.NODE_ENV === 'development') {
	baseUrl = 'http://192.168.3.145:7116'; // 开发环境
	uni.setStorageSync('custCode', '1859472131720282113');
} else {
	baseUrl = 'https://itr.chinachant.com/api'; // 生产环境
	uni.setStorageSync('custCode', '1859472131720282113');
}
// #endif

// APP | 微信小程序
// #ifdef APP-PLUS | MP-WEIXIN
if (process.env.NODE_ENV === 'development') {
	baseUrl = 'http://192.168.3.145:7116'; // 开发环境
	uni.setStorageSync('custCode', '1859472131720282113');
	// 长青
	// baseUrl = 'https://cfms.chinagemake.com/api'
	// uni.setStorageSync('custCode', '1805285716374872065')
} else {
	// SAAS生产环境
	// baseUrl = 'https://saas.1688-yun.com/api'
	// uni.setStorageSync('custCode', 'Vy84ZFQzZFo3SytJZFRKWDJ3dzYyM3QvSElRSjNqODB5YjhIWHl0N0lWUT0=')
	// SAAS演示环境
	// baseUrl = 'https://demo.1688-yun.com/api'
	// uni.setStorageSync('custCode', 'WDQ3VVZ6WEN3YVkrSitYRWFrZTNtbll3cXorSDFsUmhmUGFydy9HT3E1UT0=')

	// 长青
	baseUrl = 'https://itr.chinachant.com/api';
	uni.setStorageSync('custCode', '1859472131720282113');
}
// #endif

export default baseUrl;
